package com.chinasofti.zbest.service;

import com.alipay.api.AlipayApiException;
import com.chinasofti.zbest.dao.model.Zborder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinasofti.zbest.web.form.OrderForm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author zbest
 * @since 2019-05-28
 */
public interface IOrderService extends IService<Zborder> {

    Zborder createOrder(HttpSession session, OrderForm orderForm);

    List<Zborder> queryAllOrderById(Integer userId);

    void modifyStatus(String orderStatus,String orderNum);

    List<Zborder> queryByStatus(Integer userId , String status);

    void ali(HttpServletResponse response , HttpServletRequest request,String orderNum,String orderPay) throws AlipayApiException, IOException;

    Zborder queryByOrderNum(Integer userId , String orderNum);

    void modifyOrderByOrderStatus(String orderNum , String status);
}
